package com.cnsoft.player.h5.home;

import org.cnsoft.framework.beans.common.RESTResultBean;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.cnsoft.MyWxPLayerPageControllerSupport;

/**
 * 功能
 * 
 * @author Zmsoft
 * @version 0.1.0 2018/4/2
 * @since 0.1.0 2018/4/2
 */
@Controller
@RequestMapping(value = "/player/1.0/h5/common")
public class WXPlayerCommonController extends MyWxPLayerPageControllerSupport {

	/**
	 * 打开页面
	 * 
	 * @param [menuId]
	 * @return ModelAndView
	 * @throws Exception
	 * @author Zmsoft
	 * @version 0.1.0 2018/4/2
	 * @since 0.1.0 2018/4/2
	 */
	@RequestMapping(value = "/index.js", method = RequestMethod.POST)
	public ModelAndView doIndex() throws Exception {
		ModelAndView modelAndView = getModelAndView("/weixinplayer/player-common");

		return modelAndView;
	}

	@RequestMapping(value = "/message.js", method = RequestMethod.POST)
	public ModelAndView doMessage() throws Exception {
		ModelAndView modelAndView = getModelAndView("/weixinplayer/player-common-message");

		return modelAndView;
	}

	@RequestMapping(value = "/sms.js", method = RequestMethod.POST)
	@ResponseBody
	public RESTResultBean<String> doSms() throws Exception {
		RESTResultBean<String> result = new RESTResultBean<String>();

		return result;
	}
}
